From a3dcd88e57b89131de57a80dec5ad0fd23323a11 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Wed, 16 Feb 2005 14:48:20 +0000 Subject: [PATCH] bitkeeper revision 1.1210 (42135d344yR5vSwI1O6BZ3rfVvGIJg) Don't depend on auto-generated header asm-offsets.h. Signed-off-by: keir.fraser@cl.cam.ac.uk --- xen/Makefile | 3 +-- xen/Rules.mk | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/Makefile b/xen/Makefile index b553f0926d..802ee23542 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -99,8 +99,7 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s echo ""; \ sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \ echo ""; \ - echo "#endif") <$< >$@.tmp - @if cmp -s $@.tmp $@; then rm $@.tmp; else rm $@; mv $@.tmp $@; fi + echo "#endif") <$< >$@ .PHONY: default debug install dist clean delete-unfresh-files TAGS diff --git a/xen/Rules.mk b/xen/Rules.mk index 4c2c8c178c..0d8a37bf4d 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -21,7 +21,8 @@ HDRS := $(wildcard $(BASEDIR)/include/xen/*.h) HDRS += $(wildcard $(BASEDIR)/include/public/*.h) HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h) HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/$(TARGET_SUBARCH)/*.h) -# compile.h is always regenerated, but other files shouldn't be rebuilt +# Do not depend on auto-generated header files. +HDRS := $(subst $(BASEDIR)/include/asm-$(TARGET_ARCH)/asm-offsets.h,,$(HDRS)) HDRS := $(subst $(BASEDIR)/include/xen/banner.h,,$(HDRS)) HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS)) -- 2.30.2